package com.example.testapp;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;
 
public class FragmentThree extends Fragment {
 
    public static Fragment newInstance(Context context) {
        FragmentThree f = new FragmentThree();
 
        return f;
    }
 
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {
        ViewGroup root = (ViewGroup) inflater.inflate(R.layout.fragment_three, null);
        Intent i = new Intent(this.getActivity(), MyMap.class);
        startActivity(i);
        
        Toast t = Toast.makeText(getActivity().getApplicationContext(), "Show map plix", Toast.LENGTH_SHORT);
        t.show();
        
        return root;
    }
 
}